package com.flk.flkelasticsearch.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.flk.flkelasticsearch.es.EsInfomation;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * @author xxwy
 * on 2018/11/9 0009
 */
@Data
@Document(indexName = EsInfomation.FLX_NEW_TRUE,type = EsInfomation.DOC,createIndex =false)
public class EsNews {

    @Id
    private String id;

    private Integer newsId;

    /**
     * 资讯标题
     */
    private String title;

    /**
     * 来源（1：官方资讯）
     */
    private Integer origin;
    /**
     * 作者
     */
    private Integer userId;

    private String nickname;

    /**
     * 发布渠道（平台webApp,webPc）
     */
    private String platform;

    /**
     * 资讯类型（1:文章，2：视频）
     */
    private Integer type;

    /**
     * 创建时间
     */
    private String createTime;

    private String video;

    private String videoCover;

    private String cover;

    private String headimgurl;

    private Integer comtents;

    private Integer like;

    private Integer score;

    private String createNews;

}
